To do this requires a robust mechanism for declaring and loading plug-ins 這需要穩(wěn)健的機制來聲明和下載插件。
When loaded plug-ins are grouped, the row s values are for the plug-in and all its child plug-ins 當加載的插件被分組的時候,行的值對應于插件以及它所有子插件。
Eclipse has a deferred load strategy to avoid loading plug-ins until the user does something that requires their code eclipse有一個延遲裝入的策略,以在用戶執(zhí)行需要插件代碼的操作時才裝入插件。
Recall that the goal is to avoid loading plug-ins until they are needed, so references to the plug-ins themselves are by : explicitly stated identifiers such as 不要忘記,我們的目的是,不到插件被用到的時候盡量不去加載它,所以對插件本身的引用這樣實現(xiàn):